﻿<UserControl x:Class="OnlineVideos.DownloadedAudios"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
              xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" Loaded="UserControl_Loaded">

    <Grid x:Name="LayoutRoot">
        <StackPanel>
            <ListBox x:Name="lbxAudioList" Margin="0,-30,0,8"  SelectionChanged="lbxAudioList_SelectionChanged" Foreground="White" VerticalAlignment="Top" >
                <ListBox.ItemTemplate>
                    <DataTemplate>
                      
                        <StackPanel Orientation="Vertical">
                            <toolkit:ContextMenuService.ContextMenu>
                                <toolkit:ContextMenu >
                                    <toolkit:MenuItem x:Name="delete"  Header="delete"  Click="delete_Click">
                                    </toolkit:MenuItem>
                                </toolkit:ContextMenu>
                            </toolkit:ContextMenuService.ContextMenu>
                            <StackPanel Orientation="Horizontal" >
                                <Image Source="{Binding Songplay}" Height="43" Width="43" VerticalAlignment="Center" Margin="10,33,20,0"  Tag="{Binding Songplay}" x:Name="audioimg"/>
                                <TextBlock Text="{Binding Title}" Name="tblkchno" Margin="-2,30,0,0" Width="400" FontSize="28" VerticalAlignment="Center" TextWrapping="Wrap" Tag="{Binding LinkUrl}"/>
                                <Image x:Name="ringtone" Tag="{Binding RingToneDetails}" Source="/Images/PlayerImages/editringtone.png" Margin="-75,30,0,0" Stretch="Fill" Height="48" Width="48" MouseLeftButtonDown="ringtone_MouseLeftButtonDown" ></Image>
                            </StackPanel>

                            <toolkit:PerformanceProgressBar x:Name="MyProgressBar"  
                                                 IsIndeterminate="False" Foreground="Red"  Width="300" Tag="{Binding LinkUrl}"  Background="Black" HorizontalAlignment="Left">
                            </toolkit:PerformanceProgressBar>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </StackPanel>
        <Canvas>
            <TextBlock Canvas.Top="200" Canvas.Left="80" FontSize="28" x:Name="tblkFavNoAudio" Visibility="Collapsed"/>
        </Canvas>
        <toolkit:PerformanceProgressBar
            VerticalAlignment="Top"
            x:Name="performanceProgressBar" Foreground="Red"/>
    </Grid>
</UserControl>
